﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlReportPhanQuyenUser.ascx.cs" Inherits="UserControl_ControlReportPhanQuyenUser" %>
<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPivotGrid" tagprefix="dxwpg" %>




<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v9.2.Export, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.XtraPivotGrid.Web" tagprefix="dxpgw" %>



<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<script type="text/javascript">
    function pageLoad() {

        $("#<%= imgBtnAdd.ClientID %>").click(function () {
           
                $.blockUI({
                    message: '<h1>Xin vui lòng chờ xử lý</h1>',
                    css: {
                        border: 'none',
                        padding: '15px',
                        backgroundColor: '#f00',
                        opacity: .5,
                        color: '#fff'
                    }
                });
           
        });
        $("#<%= imgBtnSave.ClientID %>").click(function () {
            $.blockUI({
                message: '<h1>Xin vui lòng chờ xử lý</h1>',
                css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#f00',
                    opacity: .5,
                    color: '#fff'
                }
            });
            setTimeout($.unblockUI, 5000);
        });
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }

    }

</script>


<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:PostBackTrigger ControlID="imgBtnSave" />
</Triggers>
    <ContentTemplate>
     <div class="direct_container_right_titletop">
                     Báo cáo thông tin sản phẩm
                </div>
                 <hr />
                <!-- Button chuc nang-->
                <div class="direct_container_main">
                    <asp:ImageButton ID="imgBtnAdd" ToolTip="Lấy dữ liệu"  onclick="imgBtnAdd_Click"  ImageUrl="~/Images/Document.png" Width="32px" Height="32px" runat="server" />
                    <asp:ImageButton ID="imgBtnSave" ToolTip="Xuất ra file excel" onclick="imgBtnSave_Click" ImageUrl="~/Images/download.png" Width="32px" Height="32px" runat="server" />
                    
                </div>
                <!-- End Button chuc nang-->
        <dxpgw:ASPxPivotGridExporter ID="ASPxPivotGridExporter1" ASPxPivotGridID="ASPxPivotGrid1" runat="server">
        </dxpgw:ASPxPivotGridExporter>
        <dxwpg:ASPxPivotGrid ID="ASPxPivotGrid1" runat="server">
                 <Fields>
                 <dxwpg:PivotGridField ID="PivotGridField5" Area="RowArea"  AreaIndex="1" Caption="Module" FieldName="MenuName">
                </dxwpg:PivotGridField>
                <dxwpg:PivotGridField ID="PivotGridField1" Area="FilterArea"  AreaIndex="0" Caption="Mã Form" FieldName="PageID">
                </dxwpg:PivotGridField>
                <dxwpg:PivotGridField ID="PivotGridField2" Area="RowArea"  AreaIndex="0" Caption="Loại User" FieldName="TypeName">
                </dxwpg:PivotGridField>
                 <dxwpg:PivotGridField ID="PivotGridField3" Area="RowArea"  AreaIndex="2" Caption="Tên Form" FieldName="PageName">
                </dxwpg:PivotGridField>
                <dxwpg:PivotGridField ID="PivotGridField4" Area="RowArea"  AreaIndex="3" Caption="Link Form" FieldName="PageURL">
                </dxwpg:PivotGridField>
                
                </Fields>
        </dxwpg:ASPxPivotGrid>

    </ContentTemplate>
</asp:UpdatePanel>